package tests;
import common.Utils;
import org.openqa.selenium.By;

public class EditPage extends Utils {
    public static String url = "http://127.0.0.1:58080/index.html";
    public EditPage() {
        super(url);
    }

    public void pubPost() {
        driver.findElement(By.cssSelector("#bit-forum-content > div.page-header.d-print-none > div > div > div.col-auto.ms-auto.d-print-none > div > a.btn.btn-primary.d-none.d-sm-inline-block.article_post")).click();
    }

    public void postTitle() {
        driver.findElement(By.cssSelector("#bit-forum-content > div.page-body > div > div > div.card-body > div:nth-child(2) > label > strong"));
        driver.navigate().refresh();
    }

    public void postPlate() {
        driver.findElement(By.cssSelector("#bit-forum-content > div.page-body > div > div > div.card-body > div:nth-child(1) > label > strong"));
    }
}
